<div id="main-content">
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-block">
          <?php
          if($status == '2'){
          ?>
          <div class="alert alert-error fade in">
            <button data-dismiss="alert" class="close" type="button">×</button>
            <strong><?php print urldecode($pesan)?></strong>
          </div>
          <?php
          }
          if($status == '1'){
          ?>
          <div class="alert alert-success fade in">
            <button data-dismiss="alert" class="close" type="button">×</button>
            <strong><?php print urldecode($pesan)?></strong>
          </div>
          <?php
          }
          ?>
          <div class="widget-head">
            <h5><?php print $title?></h5>
          </div>
          <div class="widget-content">
            <div class="widget-box">
              <table class="data-tbl-boxy table">
                <thead>
                  <tr>
                    <th>No Account</th>
                    <th>Account</th>
                    <th>Nilai</th>
                  </tr>
                </thead>
                <tbody>
                  <?php
                  if(is_array($data)){
                    foreach ($data as $key => $value) {
                      print "
                  <tr>
                    <td>{$value->nomor}</td>
                    <td>{$value->title}</td>
                    <td style='text-align: right'>".number_format($value->saldo, 0, ",", ".")."</td>
                  </tr>"
                  ;
                    $total += $value->saldo;
                    }
                  }
                  ?>
                </tbody>
                <tfoot style="background-color: #CCC">
                  <td colspan="2"><b>JUMLAH</b></td>
                  <td style='text-align: right'><b><?php print number_format($total, 0, ",", ".")?></b></td>
                </tfoot>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>